package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.ProductByUser;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductByUserMapper {

    int insert(ProductByUser record);

    List<ProductByUser> selectAll();

    List<ProductByUser> selectByUserId(QueryObject qo);

    void deleteById(@Param("userId") Long userId, @Param("productId") Long productId);

    void deleteByCarId(@Param("userId") Long userId, @Param("productCarId") Long productCarId);
}